package com.lianbang.staff.module.user

import android.app.Activity
import android.content.Context
import android.content.Intent
import cn.ubest.mvvmcore.base.BaseActivity
import com.lianbang.staff.R
import com.lianbang.staff.databinding.ActivityFindPasswordBinding
import com.lianbang.staff.vm.MainVM

/**
 * Created by maoqi on 2021/1/12.
 */
class FindPasswordActivity : BaseActivity<MainVM, ActivityFindPasswordBinding>() {
    companion object{
        @JvmStatic
        fun start(context: Context?) {
            context?.also {
                val starter = Intent(it, FindPasswordActivity::class.java)
                if (it !is Activity) {
                    starter.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
                }
                it.startActivity(starter)
            }
        }

    }

    override fun initLayout(): Int {
        return R.layout.activity_find_password
    }

    override fun initData(intent: Intent) {
    }

    override fun initView() {
        addFragment(R.id.fl_container, VerifyCodeFragment.newInstance())
    }

    override fun loadData() {
    }

}